package edu.ynu.se.xiecheng.achitectureclass.auth.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "roles")
@Getter
@Setter
public class Role extends LogicEntity {
    
    @Column(unique = true, nullable = false)
    private String name;
    
    @Column
    private String description;
} 